package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.OaCostExpenseListsMapper;
import com.ruoyi.system.domain.OaCostExpenseLists;
import com.ruoyi.system.service.IOaCostExpenseListsService;

/**
 * 成本费用清单Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-11
 */
@Service
public class OaCostExpenseListsServiceImpl implements IOaCostExpenseListsService 
{
    @Autowired
    private OaCostExpenseListsMapper oaCostExpenseListsMapper;

    /**
     * 查询成本费用清单
     * 
     * @param expenseId 成本费用清单主键
     * @return 成本费用清单
     */
    @Override
    public OaCostExpenseLists selectOaCostExpenseListsByExpenseId(Long expenseId)
    {
        return oaCostExpenseListsMapper.selectOaCostExpenseListsByExpenseId(expenseId);
    }

    /**
     * 查询成本费用清单列表
     * 
     * @param oaCostExpenseLists 成本费用清单
     * @return 成本费用清单
     */
    @Override
    public List<OaCostExpenseLists> selectOaCostExpenseListsList(OaCostExpenseLists oaCostExpenseLists)
    {
        return oaCostExpenseListsMapper.selectOaCostExpenseListsList(oaCostExpenseLists);
    }

    /**
     * 新增成本费用清单
     * 
     * @param oaCostExpenseLists 成本费用清单
     * @return 结果
     */
    @Override
    public int insertOaCostExpenseLists(OaCostExpenseLists oaCostExpenseLists)
    {
        return oaCostExpenseListsMapper.insertOaCostExpenseLists(oaCostExpenseLists);
    }

    /**
     * 修改成本费用清单
     * 
     * @param oaCostExpenseLists 成本费用清单
     * @return 结果
     */
    @Override
    public int updateOaCostExpenseLists(OaCostExpenseLists oaCostExpenseLists)
    {
        return oaCostExpenseListsMapper.updateOaCostExpenseLists(oaCostExpenseLists);
    }

    /**
     * 批量删除成本费用清单
     * 
     * @param expenseIds 需要删除的成本费用清单主键
     * @return 结果
     */
    @Override
    public int deleteOaCostExpenseListsByExpenseIds(Long[] expenseIds)
    {
        return oaCostExpenseListsMapper.deleteOaCostExpenseListsByExpenseIds(expenseIds);
    }

    /**
     * 删除成本费用清单信息
     * 
     * @param expenseId 成本费用清单主键
     * @return 结果
     */
    @Override
    public int deleteOaCostExpenseListsByExpenseId(Long expenseId)
    {
        return oaCostExpenseListsMapper.deleteOaCostExpenseListsByExpenseId(expenseId);
    }
}
